import { FormGroupVO } from './types';

const formGroupConfig: FormGroupVO[] = [
	{
		name: '文本',
		type: 'Text',
		formList: [
			{
				name: '流水号',
				icon: 'Timer',
				type: 'Sequence',
				typeName: '说明',
				placeholder: 'PREFIX2023072300001',
				required: false,
				props: {
					value: '',
					prefix: '',
				},
			},
			{
				name: '单行文本',
				type: 'Input',
				typeName: '单行文本',
				icon: 'EditPen',
				placeholder: '请填写',
				required: false,
				props: {
					value: '',
				},
			},
			{
				name: '多行文本',
				icon: 'More',
				type: 'Textarea',
				typeName: '多行文本',
				placeholder: '请填写',
				required: false,
				props: {
					value: '',
				},
			},
			{
				name: '富文本',
				type: 'RichEditor',
				typeName: '富文本',
				icon: 'Notebook',
				placeholder: '请填写',
				required: false,
				props: {
					value: '',
				},
			},
			{
				name: '签名',
				icon: 'EditPen',
				type: 'Sign',
				typeName: '说明',
				placeholder: '请填写',
				required: false,
				props: {
					value: '',
				},
			},
			{
				name: '说明',
				icon: 'ChatLineSquare',
				type: 'Description',
				typeName: '说明',
				placeholder: '请填写',
				required: false,
				props: {
					value: '',
				},
			},
		],
	},
	{
		name: '数值',
		type: 'Number',
		formList: [
			{
				name: '数字',
				type: 'Number',
				icon: 'Edit',

				typeName: '数字',
				placeholder: '请填写',
				required: false,
				props: {
					radixNum: 0,
				},
			},
			{
				name: '金额',
				type: 'Money',
				icon: 'Money',

				typeName: '金额',
				placeholder: '请填写',
				required: false,
				props: {
					radixNum: 0,
				},
			},
		],
	},
	{
		name: '日期-时间',
		type: 'DateTime',
		formList: [
			{
				name: '日期',
				type: 'Date',
				icon: 'Calendar',

				typeName: '日期',
				placeholder: '请选择',
				required: false,
				props: {
					radixNum: 0,
				},
			},
			{
				name: '日期时间',
				type: 'DateTime',
				icon: 'AlarmClock',

				typeName: '日期时间',
				placeholder: '请选择',
				required: false,
				props: {
					radixNum: 0,
				},
			},
			{
				name: '时间',
				type: 'Time',
				icon: 'Timer',

				typeName: '时间',
				placeholder: '请选择',
				required: false,
				props: {
					radixNum: 0,
				},
			},
			{
				name: '时间列表',
				type: 'DateTimeList',
				icon: 'AlarmClock',
				typeName: '时间列表',
				placeholder: '请选择',
				required: false,
				props: {
					radixNum: 0,
				},
			}
		],
	},
	{
		name: '选项',
		type: 'Option',
		formList: [
			{
				name: '单选',
				icon: 'Select',
				type: 'SingleSelect',
				typeName: '单选',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '',
							value: '',
						},
					],
				},
			},
			{
				name: '多选',
				type: 'MultiSelect',
				typeName: '多选',
				icon: 'Finished',
				placeholder: '请选择',
				required: false,
				props: {
					value: [],
					options: [
						{
							key: '',
							value: '',
						},
					],
				},
			},
			{
				name: '省市区',
				type: 'Area',
				typeName: '省市区',
				icon: 'MapLocation',
				placeholder: '请选择',
				required: false,
				props: {
					value: '',
				},
			},
		],
	},
	{
		name: '其他',
		type: 'Other',
		formList: [
			{
				name: '图片',
				type: 'UploadImage',
				typeName: '图片',
				icon: 'Picture',
				placeholder: '请选择',
				required: false,
				props: {
					value: '',
					maxSize: 10,
					suffixArray: ['image/jpeg', 'image/png', 'image/gif'],
				},
			},
			{
				name: '打卡记录',
				type: 'DKdate',
				typeName: '打卡记录',
				icon: 'Picture',
				placeholder: '未检测到打卡记录',
				required: false,
				props: {

				},
			},

			{
				name: '文件',
				type: 'UploadFile',
				typeName: '文件',
				icon: 'Upload',
				placeholder: '请选择',
				required: false,
				props: {
					value: '',
					min: 1,
					max: 10,
					maxSize: 10,
					suffixArray: ['png', 'jpg', 'jpeg', 'doc', 'xls', 'ppt', 'txt', 'pdf', 'docx', 'xlsx', 'pptx'],
				},
			},
			{
				name: '用户',
				type: 'SelectUser',
				typeName: '用户',
				placeholder: '请选择',
				icon: 'User',

				required: false,
				props: {
					multi: false,
					self: false,
					value: [],
				},
			},
			{
				name: '部门',
				icon: 'OfficeBuilding',
				type: 'SelectDept',
				typeName: '部门',
				placeholder: '请选择',
				required: false,
				props: {
					multi: false,
					self: false,
					value: [],
				},
			},
			{
				name: '角色',
				icon: 'OfficeBuilding',
				type: 'SelectRole',
				typeName: '角色',
				placeholder: '请选择',
				required: false,
				props: {
					multi: false,
					self: false,
					value: [],
				},
      },
      {
				name: '补卡类型',
				icon: 'Select',
				type: 'ReissueCardSingleSelect',
				typeName: '补卡类型',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '',
							value: '',
						},
					],
				},
			},
			{
				name: '身份证类型',
				type: 'SFZnumber',
				icon: 'Edit',

				typeName: '身份证类型',
				placeholder: '请填写',
				required: false,
				props: {
					radixNum: 0,
				},
			},
			{
				name: '手机号类型',
				type: 'PhoneNumber',
				icon: 'Edit',

				typeName: '手机号类型',
				placeholder: '请填写',
				required: false,
				props: {
					radixNum: 0,
				},
			},
			{
				name: '销假类型',
				icon: 'Select',
				type: 'OffSelect',
				typeName: '销假类型',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '',
							value: '',
						},
					],
				},
      },
      {
				name: '请假类型',
				icon: 'Select',
				type: 'LeaveType',
				typeName: '请假类型',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '1',
							value: 'ddde',
						},
					],
				},
			},
      {
				name: '日期时间范围',
				icon: 'Timer',
				type: 'DateTimeRange',
				typeName: '日期时间范围',
        placeholder: '请选择',
        startPlaceholder:"开始时间",
        endPlaceholder:"结束时间",
        required: false,
				props: {
					options: [
						{
							key: '',
							value: '',
						},
					],
				},
      },
      {
				name: '请假时长',
				type: 'LeaveNumber',
				icon: 'Edit',
				typeName: '请假时长',
				placeholder: '请填写',
				required: false,
				props: {
					radixNum: 0,
				},
	  },
			{
				name: '发起人信息',
				type: 'InitiatorInformation',
				icon: 'Edit',
				typeName: '发起人信息',
				placeholder: '请填写',
				required: false,
				props: {
					
				},
			},
			{
				name: '加班',
				icon: 'Select',
				type: 'JbSelect',
				typeName: '加班',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '1',
							value: '加班',
						},
					],
				},
			},
			{
				name: '出差',
				icon: 'Select',
				type: 'CcSelect',
				typeName: '出差',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '1',
							value: '出差',
						},
					],
				},
			},
			{
				name: '销差',
				icon: 'Select',
				type: 'XjSelect',
				typeName: '销差',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '1',
							value: '销差',
						},
					],
				},
			},
			{
				name: '排班',
				icon: 'Select',
				type: 'PbSelect',
				typeName: '排班',
				placeholder: '请选择',
				required: false,
				props: {
					options: [
						{
							key: '1',
							value: '排班',
						},
					],
				},
      },
		],
	},
];

export { formGroupConfig };
